package com.ruoyi.procured.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.procured.domain.PaymentRequestProcess;
import com.ruoyi.procured.domain.ProcuredPlanProcess;
import com.ruoyi.procured.domain.vo.PaymentRequestProcessVo;
import com.ruoyi.procured.domain.vo.ProcuredPlanProcessVo;
import com.ruoyi.procured.domain.vo.ProcuredPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 采购订单-审核流程Mapper接口
 *
 * @author 刘广帆
 * @date 2024-03-20
*/
@Mapper
public interface ProcuredPlanProcessMapper extends BaseMapper<ProcuredPlanProcess> {
    /**
     * 查询审核流程
     * @param procuredPlanId
     * @return
     */
    List<ProcuredPlanProcessVo> getProcuredPlanProcessList(Long procuredPlanId);
    /**
     * 我已审核的采购计划
     * @param procuredPlan
     * @return
     */
    List<ProcuredPlanVo> getPlanReadyProcuredProcessList(ProcuredPlanVo procuredPlan);
    /**
     * 我发起的采购计划
     * @param procuredPlan
     * @return
     */
    List<ProcuredPlanVo> getPlanMyProcuredProcessList(ProcuredPlanVo procuredPlan);

    /**
     * 查询审核流程状态
     * @param planId
     * @return
     */
    List<String> selectStatusesByPlanId(@Param("planId")String planId);
}




